<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>回款、提成明细</title>
<style type="text/css">
h3{background:#ccc;padding-left:12px;}
.tab_b{border-left:1px solid #8CCD8C;border-top:1px solid #8CCD8C;border-collapse: collapse;font-size:16px;text-align:left}
.tab_b td,.tab_b th{border-bottom:1px solid #8CCD8C;border-right:1px solid #8CCD8C;padding-left:10px;line-height:21px;}
.STYLE3 {font-size: 13px;white-space:nowrap;}
</style>
<script type="text/javascript" src="${pageContext.request.contextPath}/tool/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/tool/su.js"></script>
</head>
<body>
<script type="text/javascript">
$(function(){
$(".STYLE3").textLen(15);
})
</script>
<p align="center">业务员实际提留明细</p>
<p align="center"><b>提留总计：${totalPayment}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="${pageContext.request.contextPath}/report?_method=excelPaymentDetail&timeFrom=${s.timeFrom}&timeTo=${s.timeTo}&salesmanid=${s.salesmanid}&customerid=${s.customerid}&&fileName=tiliu">
	导出数据到Excel表中</a></p>
<table class="tab_b" align="center">
<thead>
<tr>
<th>业务员</th>
<th>订单ID</th>
<th>发货时间</th>
<th width="20%">客户</th>
<th>回款时间</th>
<th>支付金额</th>
<th>提留</th>
</tr>
</thead>
<c:if test="${!empty pays}">
<c:forEach items="${pays}" var="pay">
<tr>
<td>${pay["pname"]}</td>
<td>${pay["orderid"]}</td>
<td><fmt:formatDate value="${pay['shipmenttime']}" pattern="yyyy-MM-dd" /></td>
<td class="STYLE3">${pay["cname"]}</td>
<td><a href="${pageContext.request.contextPath}/paybackMaintain?_method=detail&id=${pay['paybackid']}" target="_blank">${pay["paydate"]}</a></td>
<td>${pay["amount"]}</td>
<td>${pay["payment"]}</td>
</tr>
</c:forEach>
</c:if>
</table>
</body>
</html>
